﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Dazaza.UI.Mvc.Models;
using Dazaza.Repositories;

namespace Dazaza.UI.Mvc.Controllers
{
    public class ExploreController : BaseController
    {
        [OutputCache(Duration=5)]
        public ActionResult Index()
        {
            ExploreIndexViewModel model = new ExploreIndexViewModel(masterViewModel);

            model.Tab = Enums.EnumTab.Explore;
            model.InfoModelList = InfoRepository.GetExplore(20);
            model.MasterViewModel.HeaderInfo.PageTitle = "随便逛逛 —— "+Common.CommonData.SiteSlogan;


            return View(model);
        }

    }
}
